
<!-- 页头 -->
<header>
	<nav class="navbar navbar-fixed-top navbar-white">
		<div class="navbar-header">
			<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            
            <a id="header_logo" class="navbar-brand" href="/" title="{:C('WEB_SITE_TITLE')}" style="background-image:url('__IMG__/{:C('WEB_SITE_LOGO')}')">{:C('WEB_SITE_TITLE')}</a>
		</div>
		<div id="navbar" class="collapse navbar-collapse">
			<ul class="nav navbar-nav" style="padding-left:10px;">
	             <li >
	                   <a id="nav-00"  href="{:U('Index/index')}" target="_self">首页</a>
	             </li>	
				 <think:nav name="nav">
	                    	<eq name="nav.pid" value="0">
	                        <li >
	                            <a id="nav-{$nav.id}"  href="{$nav.url|get_nav_url}" target="<eq name='nav.target' value='1'>_blank<else/>_self</eq>">{$nav.title}</a>
	                        </li>
	                        </eq>
                  </think:nav>
                  <if condition="$config.SHOW_GOODS_CATEGORY eq '1' ">
                  <notempty name="category_goods_tree">
                  <li class="dropdown">
			          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">分类 <span class="caret"></span></a>
			          <ul class="dropdown-menu">
			          	<volist name="category_goods_tree" id="vo">
			          		<li><a href="{:U('Goods/cate?id='.$vo['id'])}">{$vo['category_name']}</a></li>
			          	</volist>
			          </ul>
			       </li>
			       </notempty>
			      </if>
	         </ul>
	         
	         
	         <ul class="nav navbar-nav navbar-right ng-scope">
	         			
	         		<if condition="$my['uid'] gt 0">
		                <li>
		                	<a href="{:U('User/index')}"><i class="glyphicon glyphicon-user"></i> &nbsp;{$my['username']}</a>
		                </li>
						<li>
							<a href="{:U('User/logout')}"><i class="glyphicon glyphicon-log-out"></i> &nbsp;退出</a>
						</li>
		                <else/>
		                <li>                	
		                	<a href="{:U('User/login')}" rel="nofollow">登录</a>
		                </li>
		                <li>
		                	<a href="{:U('User/register')}" rel="nofollow">注册</a>
		                </li>
		                
            		</if> 
            		<li>
		                <a href="{:U('Seller/index')}" rel="nofollow">商家报名</a>
		            </li>
		               
	         </ul>
	         
	         <form class="navbar-form navbar-right" role="search" action="{:U('Search/index')}" method="POST">
		        <div class="form-group">
		         	 <input type="text" name="keywords" id="keywords" class="form-control" value="{$keyword}" placeholder="请输入想找的宝贝...">
		        </div>
		        	<button type="submit" class="btn btn-blue">搜索</button>
		      </form>
		</div>
	</nav>
</header>   
<!-- /页头 -->
